From: Jonathan Dieter Date: Fri, 20 Apr 2018 17:35:17 +0000 (+0300) Subject: Fix memory leak with full data hash X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~305 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fa219d94204959de5ba208cbb5a8f98984b06017;p=zchunk.git Fix memory leak with full data hash Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/dl/dl.c b/src/lib/dl/dl.c index fd36aa0..b7f6616 100644 --- a/src/lib/dl/dl.c +++ b/src/lib/dl/dl.c @@ -486,6 +486,7 @@ int PUBLIC zck_dl_get_header(zckCtx *zck, zckDL *dl, char *url) { return False; if(!zck_validate_header(zck)) return False; + zck_hash_close(&(zck->check_full_hash)); /* Write zeros to rest of file */ zckIndex *info = &(dl->info.index);